Add vcpus_max and vcpus_at_startup values to the example VM creation.
authorEwan Mellor <ewan@xensource.com>
Sat, 10 Mar 2007 14:57:11 +0000 (14:57 +0000)
committerEwan Mellor <ewan@xensource.com>
Sat, 10 Mar 2007 14:57:11 +0000 (14:57 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/libxen/test/test_bindings.c

index 6a51cd3a058f5b8f569dc602ba8c02b45cd1079e..8e89ee535678653e7889795c7e7a7b18e5e2c6ad 100644 (file)
@@ -375,6 +375,8 @@ static xen_vm create_new_vm(xen_session *session, bool hvm)
             .memory_static_min = 128,
             .vcpus_policy = "credit",
             .vcpus_params = vcpus_params,
+            .vcpus_max = 4,
+            .vcpus_at_startup = 2,
             .actions_after_shutdown = XEN_ON_NORMAL_EXIT_DESTROY,
             .actions_after_reboot = XEN_ON_NORMAL_EXIT_RESTART,
             .actions_after_crash = XEN_ON_CRASH_BEHAVIOUR_PRESERVE,